from com.kjssoft.common.models import ServiceException
from com.kjssoft.eagleye.social.models import Bind

__author__ = 'KJS'

class SocialBindClientServiceException(ServiceException):
    pass

class PlatformBindConsts(object):
    class ErrorCode(object):
        INVALID_BIND_INFORMATION = 1

class SocialBindClientServer(object):
    def __init__(self, bind):
        if bind and isinstance(bind, Bind):
            self.bind = bind
        else:
            raise SocialBindClientServiceException(
                PlatformBindConsts.ErrorCode.INVALID_BIND_INFORMATION,
                'Bind information invalid.'
            )

    def get_social_user_auth(self):
        pass

    def get_social_auth_url(self):
        pass